//
//  shuiguolaileDateTimePickerView.h
//  shuiguolaileDateTimePickerView
//
//  Created by 1 on 18/10/26.
//  Copyright © 2018年 HZQ. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef enum {
    DateTypeOfStart = 0,
    DateTypeOfEnd,
}DateType;

@protocol shuiguolaileDateTimePickerViewDelegate <NSObject>

- (void)getSelectDate:(NSDate *)date type:(DateType)type;

@end

@interface shuiguolaileDateTimePickerView : UIView

@property (weak, nonatomic) IBOutlet UIDatePicker *datePickerView;

@property (nonatomic, copy) void(^SelectDateBlock)(NSDate * selectDate,DateType type);
@property (nonatomic, weak) id<shuiguolaileDateTimePickerViewDelegate> delegate;
@property (nonatomic, assign) DateType type;
@property (nonatomic, assign) CGFloat customBottomPadding;

+ (shuiguolaileDateTimePickerView *)instanceDatePickerView;

@end
